package de.fhhof.robot.control.cmd.concreate;

import de.fhhof.robot.control.IControlToStorage;
import de.fhhof.robot.control.IMessage;
import de.fhhof.robot.control.cmd.AbstractCommand;

public class CmdRequestSmarties extends AbstractCommand{

	private IControlToStorage crtToStorage;
	private MessageState msgState;
	
	public CmdRequestSmarties(IControlToStorage crtToStorage) {
		this.crtToStorage = crtToStorage;
	}


	@Override
	public void executeCommand() {
		
		this.msg.ack("A001", "");
		
		IMessage message = this.crtToStorage.getSmartiesStatus(msg);
		this.msg.ack(message.getCommand(), message.getPayload());
		
	}

}
